class ImUserModel {
  String id;
  String name;
  String? avater;

  ImUserModel({
    required this.id,
    required this.name,
    this.avater,
  });
  factory ImUserModel.fromJson(Map<String, dynamic> json) => ImUserModel(
        id: json['id'].toString(),
        name: json['name'].toString(),
        avater: json['avater'].toString(),
      );

  Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'avater': avater,
      };
}
